# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=blackbox
pkgver=1.20220610
pkgrel=0
pkgdesc="Safely store secrets in Git/Mercurial/Subversion"
url="https://github.com/StackExchange/blackbox"
arch="noarch"
depends="bash gnupg"
options="!check" # no tests
license="MIT"
source="$pkgname-$pkgver.tar.gz::https://github.com/StackExchange/blackbox/archive/v$pkgver.tar.gz"

package() {
	# Makefile doesn't create directories
	mkdir -p "$pkgdir"/bin/

	make PREFIX="$pkgdir" copy-install
}
sha512sums="
db45d7874e5a1e62e8a078eca8c3fed8fae895ee979e516bd900374c5a39808f4dec39a637ae870bbf37bb4d05fe0b469decdc163000b0f49b87e094a4eab62c  blackbox-1.20220610.tar.gz
"
